<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
<title>Untitled Document</title>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/reset.css" type="text/css" media="all"/>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/buiding.css" type="text/css" media="all"/>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN;?>js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN;?>js/custom.js"></script>
</head>
<body>
	<div id="warp">
    	<div id="header">
        </div>
        <!-- end header-->
        <div id="content">
        	<div id="leftMenu">
            	<ul class="navi">
                	<li><a>Trang chủ</a></li>
                    <li><a>Giới thiệu</a></li>
                    <li><a>Hướng dẫn</a></li>
                    <li><a>Chat</a></li>
                    <li class="marbottom20"><a>Đăng nhập</a></li>
                    
                	<li><a>Forum</a></li>
                    <li><a>Cốt truyện</a></li>
                    <li><a>Trợ giúp</a></li>
                    <li><a>Liên hệ</a></li>
                    <li><a>Tìm hiểu</a></li>
                    <li><a href="<?php echo site_url("logout");?>">Thoát ra</a></li>
                </ul>
            </div>
        	<div id="viewInfo" class="padtop20 padleft20 tbl-list">
                <table class="tbl-list" width="500">
                    <thead>
                        <tr>
                            <td colspan="5" class="text-center"><label>Thư đã gửi</label></td>
                        </tr>
                        <tr>
                            <td width="15"><input onclick="sChkAll(this, '#viewInfo', 'sChkItem', '#hddIdAction');" type="checkbox" /></td>
                            <td class="text-center"><label>Chủ đề</label></td>
                            <td class="text-center"><label>Người nhận</label></td>
                            <td class="text-center"><label>Lúc gửi</label></td>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                            foreach($info as $if){
                        ?>
                        <tr>
                            <td>
                                <p>
                                    <input id="hdd_<?php echo $if['id'];?>" value="<?php echo $if['id'];?>" class="sChkItem" type="checkbox" />
                                </p>
                            </td>
                            <td>
                                <p class="text-center">
                                    <a href="<?php echo site_url("mess/read?id=").$if['id'];?>"><?php echo $if['topic'].' '.($if['viewed']==0?'(Chưa đọc)':'');?></a>
                                </p>
                            </td>
                            <td>
                                <p class="text-center">
                                    <a href="#"><?php echo $if['usend'];?></a>
                                </p>
                            </td>
                            <td>
                                <p class="text-center">
                                    <?php echo gmdate('Y/m/d H:i:s', $if['time']);?>
                                </p>
                            </td>
                        </tr>
                        <?php
                            }
                        ?>
                    </tbody>
                </table>
                <input id="hddIdAction" name="hddIdAction" type="hidden" value="" />
                <br />
                <table class="tbl-list" width="500">
                    <tr>
                        <td>
                            <p class="ver-middle float-left">
                                <input class="pad5" id="uname" name="uname" type="text" size="20" />
                                <input class="pad5 marleft10" type="submit" value="Tìm kiếm" />
                            </p>
                            <p class="ver-middle float-left padtop5">
                                <a class="marleft10" href="#" title="Xem lùi">Back</a>
                                <a class="marleft10" href="#" title="Xem tới">Next</a>
                            </p>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
</body>
</html>